import React from 'react';
import { Button, message } from 'antd';
import { Confirm } from "@ecoding/components.antd";

const C = () => {

    const handler = () => {
        Confirm.showDelete({
            title: `是否删除?`,
            onOk: async () => {
                try {
                    message.success("操作成功")
                } catch (e) {
                    console.log(e);
                }
            }
        });
    }

    return (
        <Button onClick={handler}>
            确认删除
        </Button>
    );
}

export default C;